import http from "@/utils/request/httpRequest.ts";

// 列表
export const parameterList = (data: {
  current: number;
  size: number;
  data: object;
}) => http.post('sysParam/getSysParamList', data)

//添加参数
export const parameterAdd = (data: object) => http.post('sysParam/add', data)

// 删除
export const parameterDel = (data: object) => http.post("sysParam/delete", data)
// 编辑
export const parameterEdit = (data: object) => http.post("sysParam/update", data)

// 批量删除
export const parameterDelAll = (data: object) => http.post("sysParam/deleteBatch", data)

// 导出
export const exportExl = (data: object) => http.post("sysParam/exportXls", {
  responseType: 'blob',
  data
},)

//  下载导入模板
export const downLoad = (data) => http.get("file/downloadTemplate", {
  responseType: "blob",
  params: data
})
